<template>
  <div class="setting-content inside-comment">
    <FormList title="留言表管理" :fieldList="addFieldList" :addForm="true" :showFront="true"/>
    <FormList title="回收站" :fieldList="recycleFieldList" :addForm="false" />
  </div>
</template>
<script setup>
import { ref } from "vue";
import FormList from "../components/FormList.vue";

const addFieldList = ref([
  {
    title: "名称",
    name: "name",
  },
  {
    title: "说明",
    name: "description",
  },
 
  {
    title: "是否分类",
    name: "isClassifyFlow",
  },
  {
    title: "内网使用",
    name: "intranet",
  },
  {
    title: "创建时间",
    name: "updateTime",
    visible: true,
  },
  {
    title: "操作",
    name: "options",
    width: 200,
    fixed: "right",
  },
]);
const recycleFieldList = ref([
  {
    title: "名称",
    name: "name",
  },
  {
    title: "说明",
    name: "description",
  },
 
  {
    title: "是否分类",
    name: "isClassifyFlow",
  },
  {
    title: "内网使用",
    name: "intranet",
  },
  {
    title: "删除时间",
    name: "updateTime",
    visible: true,
  },
  {
    title: "操作",
    name: "options",
    width: 200,
    fixed: "right",
  },
]);
</script>

<style lang="scss" scoped>
.manage-header {
  margin-top: 10px;
}
.comment-option{
  display: flex;
  justify-content: space-between;
  .change-card {
    height: 32px;
    width: 64px;
    box-sizing: border-box;
    border: var(--el-border);
    border-radius: 4px;
    display: flex;
    overflow: hidden;
    margin-left: 20px;

    a {
      display: flex;
      width: 50%;
      height: 100%;
      align-items: center;
      justify-content: center;
    }

    a.active {
      background-color: $mainColor;

      i {
        color: #fff;
      }
    }
  }
}
.form-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-right: -20px;
  .form-item {
    width: 450px;
    min-height: 200px;
    padding: $padding-medium;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid $borderColor;
    margin-right: 20px;
    margin-bottom: 20px;
    color:$black_2;
    .item-name{
      font-size: 16px;
    }
    .item-row {
      font-size: 14px;
      margin-bottom: 10px;
      &.item-name{
        font-size: 18px;
        font-weight: bold;
      }
      span{
        color: $black;
      }
    }
    .button-container{
      display: flex;
      justify-content: end;
      button {
        margin-left: 10px;
      }
    }
  }
}
.classify-flow{
  margin-left: 20px;
  .el-switch{
    margin-left: 10px;
  }
  p{
    display: flex;
    align-items: center;
  }
}
.flow-radio{
  &.br{
    margin-top: 10px;
  }
  .el-radio{
    margin-right: 30px;
    margin-bottom: 10px;
    .radio-label{
      /* margin-right: 10px; */
    }
    .el-select{
      margin-left: 10px;
    }
    &:last-child{
      margin-right: 0;
    }
  }
} 
.form-box{
  padding: 15px 15px 0;
  border: 1px solid $borderColor;
  border-radius: 4px;
  margin-bottom: 10px;
  &.no-margin-bottom{
    margin-bottom: 0;
  }
  .button-container{
    display: flex;
    justify-content: end;
    margin-bottom: 15px;
  }
  &.card{
    ::v-deep .el-radio-group{
      position: relative;
      
    }
  }
  
}
.user-item{
  color: var(--el-text-color-regular);
  margin-bottom: 15px;
}
.tips{
  font-size: 12px;
  margin-top: 10px;
  color: $mainColor;
}
.ruifox-table-new-no-data{
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  padding: 20px 0;
  width: 100%;
  height: 100px;
  svg{
    flex-shrink: 0;
    path{
      fill: #AAAAAA;
    }
  }
  &>i{
    font-size: 100px;
    color: #AAAAAA;
  }
  &>span{
    font-size: 12px;
    color: #AAAAAA;
  }
}
::v-deep .el-date-editor.el-input {
  max-width: 100%;
}
::v-deep .el-input-number {
  max-width: 100%;
}
@media (max-width: 1800px) {
  .form-list .form-item{
    width: calc(33.3% - 20px);
  }
}
@media (max-width: 1600px) {
  .form-list .form-item{
    width: calc(50% - 20px);
  }
}

</style>
